package com.zyicoding.myfactory.service.impl;

import com.zyicoding.myfactory.dao.JobMapper;
import com.zyicoding.myfactory.pojo.Job;
import com.zyicoding.myfactory.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class JobServiceImpl implements JobService {
    @Autowired
    private JobMapper jobMapper;
    @Override
    public List<Job> selectAllJob() {
        return jobMapper.selectList(null);
    }

    @Override
    public Job selectJobById(Integer id) {
        return jobMapper.selectById(id);
    }
}
